package com.epfresh.bean;

public class CarCnt {

    /*{
        "id" : 90,
            "type" : 1,
            "idAndType" : "90|1",
            "shoppingCarId" : null,
            "productId" : null,
            "promotionItemId" : null,
            "cnt" : 9.0
    }*/

    private String merMsg;

    public String getMerMsg() {
        return merMsg;
    }

    public void setMerMsg(String merMsg) {
        this.merMsg = merMsg;
    }

    private String specId;
    private double cnt;
    private String id;
    private String specPromotionItemId;
    private String shoppingCarId;
    private String type;
    private String idAndType;

    public String getPromotionItemId() {
        return specPromotionItemId;
    }

    public void setPromotionItemId(String promotionItemId) {
        this.specPromotionItemId = promotionItemId;
    }

    public String getProductId() {
        return specId;
    }

    public void setProductId(String productId) {
        this.specId = productId;
    }

    public double getCnt() {
        return cnt;
    }

    public void setCnt(double cnt) {
        this.cnt = cnt;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getShoppingCarId() {
        return shoppingCarId;
    }

    public void setShoppingCarId(String shoppingCarId) {
        this.shoppingCarId = shoppingCarId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIdAndType() {
        return idAndType;
    }

    public void setIdAndType(String idAndType) {
        this.idAndType = idAndType;
    }

    public String getIdPlus(){
       /* if (promotionItemId != null ){
            return id+"|"+type;
        }
        return id;*/
        return idAndType;
    }
    public String getProductIdPlus(){
        if (specPromotionItemId != null ){
            return specId+"|"+specPromotionItemId;
        }
        return specId;
    }
}
